package com.dragon.design.principle.openclose;

/**
 * @author dragon
 * @version V1.0.0-RELEASE
 * @date 2019/5/15 11:07
 */
public class JavaCourse implements Course {
    private Long id;

    private String name;

    private Double price;

    public JavaCourse(Long id, String name, Double price) {
        this.id = id;
        this.name = name;
        this.price = price;
    }

    @Override
    public Long getId() {
        return this.id;
    }

    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public Double getPrice() {
        return this.price;
    }
}
